﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AssignQuestionsToHotDeal.aspx.vb" Inherits="Admin_AssignQuestionsToHotDeal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Assign Questions To Customer Type</title>
		<link href="../Styles.css" type="text/css" rel="stylesheet">
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
			<h1><a href="Default.aspx">Question Administration</a> :: Assign Questions To 
				Hot Deal</h1>
			<p>Hot Deal:
				<asp:DropDownList id="hotDeal" runat="server" AutoPostBack="True" DataTextField="Title" DataValueField="HotDealID"></asp:DropDownList></p>
			<p><hr>
			<P></P>
			<p>Question to Add:
				<asp:DropDownList id="question" runat="server" DataTextField="QuestionTextAndControlSrc" DataValueField="QuestionID"></asp:DropDownList>&nbsp;
				<asp:Button id="btnAddQuestion" runat="server" Text=" Add "></asp:Button>
			</p>
			<P>
				<asp:DataGrid id="dgQuestions" runat="server" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
					BackColor="White" CellPadding="4" AutoGenerateColumns="False" DataKeyField="DynamicQuestionID">
					<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
					<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
					<ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
					<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
					<Columns>
						<asp:ButtonColumn Text="Remove" CommandName="Delete"></asp:ButtonColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:ImageButton Runat=server ID="btnMoveUp" CommandName="MoveUp" ImageUrl="~/Admin/Images/up.gif"></asp:ImageButton>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:ImageButton Runat=server ID="btnMoveDown" CommandName="MoveDown" ImageUrl="~/Admin/Images/down.gif"></asp:ImageButton>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn DataField="QuestionText" HeaderText="Question"></asp:BoundColumn>
						<asp:BoundColumn DataField="ControlSrc" HeaderText="User Control"></asp:BoundColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<asp:HyperLink runat="server" Text="Preview" NavigateUrl='<%# "PreviewUC.aspx?Src=" & Server.UrlEncode(DataBinder.Eval(Container, "DataItem.ControlSrc").ToString()) & "&Question=" & Server.UrlEncode(DataBinder.Eval(Container, "DataItem.QuestionText").ToString()) %>' Target="_blank" ID="Hyperlink1">
								</asp:HyperLink>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></PagerStyle>
				</asp:DataGrid></P>
			<asp:Label id="noQuestionsForCustomerTypeMsg" runat="server" Font-Italic="True">There are no questions yet associated with the selected customer type.</asp:Label>
		</form>
	</body>
</html>
